package org.haq.bae.datamodel;

/**
 * User: abilhakim
 * Date: 5/7/12
 * Time: 3:38 AM
 */
public class FieldModel extends AbstractModel {

    protected boolean nullable;
    protected String type;
    protected String width;
    protected boolean required;
    protected boolean calculated;
    protected String calculateExpression;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public boolean isNullable() {
        return nullable;
    }

    public void setNullable(boolean nullable) {
        this.nullable = nullable;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getWidth() {
        return width;
    }

    public void setWidth(String width) {
        this.width = width;
    }

    public boolean isRequired() {
        return required;
    }

    public void setRequired(boolean required) {
        this.required = required;
    }

    public boolean isCalculated() {
        return calculated;
    }

    public void setCalculated(boolean calculated) {
        this.calculated = calculated;
    }


}
